import request from '@/utils/request'

/**
 * 小程序登录_内测版
 * @param phone 模拟手机号码
 */
export const postLoginWxSimpleAPI = (phone) => {
    return request({
        method: 'POST',
        url: '/wx/login',
        data: {
            phone: phone
        },
    })
}

/**
 * 获取用户收藏信息
 */
export const getUserCollectAPI = (id) => {
    return request({
        method: 'GET',
        url: '/collection',
        data: {
            id: id
        }
    })
}

/**
 * 添加用户收藏信息
 */
export const postUserCollectAPI = (id) => {
    return request({
        method: 'POST',
        url: '/add/collection',
        data: {
            id: id
        }
    })
}

/**
 * 删除用户收藏信息
 */
export const deleteUserCollectAPI = (id) => {
    return request({
        method: 'POST',
        url: '/delete/collection',
        data: {
            id: id
        }
    })
}